package org.jcubic.mvc.mapping;


import org.jcubic.mvc.annotation.RequestMethod;

import java.util.Arrays;

/**
 * 存放 @Request 节点信息
 */
public class RequestMapping {
    private String[] url;
    private String methodName;
    private String className;
    private String result;
    private String classFullName;//完整路径名字， 包含报名.方法名
    private RequestMethod[] method;



    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public String getClassFullName() {
        return classFullName;
    }

    public void setClassFullName(String classFullName) {
        this.classFullName = classFullName;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public String[] getUrl() {
        return url;
    }

    public void setUrl(String[] url) {
        this.url = url;
    }

    public RequestMethod[] getMethod() {
        return method;
    }

    public void setMethod(RequestMethod[] method) {
        this.method = method;
    }

    @Override
    public String toString() {
        return "RequestMapping{" +
                "url=" + Arrays.toString(url) +
                ", methodName='" + methodName + '\'' +
                ", className='" + className + '\'' +
                ", result='" + result + '\'' +
                ", classFullName='" + classFullName + '\'' +
                ", method=" + Arrays.toString(method) +
                '}';
    }
}
